package com.yy.utils;

public class ThreadLocalUtil {
    private static final ThreadLocal<Object> userIdThreadLocal = new ThreadLocal<>();

    public  static void setAttribute(Object attribute){
        userIdThreadLocal.set(attribute);
    }
    public static Object getAttribute(){
        return userIdThreadLocal.get();
    }
    public static void removeAttribute(){
        userIdThreadLocal.remove();
    }

}
